Package com.cisco.pt.ipc.sim
Interface Cable
- All Known Implementing Classes:
CableImpl
Information provided by the PKI file:
\class Cable
\brief Cable is the generic cable class with two endpoints.
\example network().getDevice("Router0").getPort("FastEthernet0/0").getLink()
- Author:
- Auto-generated
-
Method Summary
Methods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Link
getConnectionType
-
Method Details
-
getPort1
Port getPort1()Information provided by the PKI file:
\brief Returns the port on the first end of the cable. \return Port, the port on the first end of the cable.- Returns:
- Port Returns a Port
-
getPort2
Port getPort2()Information provided by the PKI file:
\brief Returns the port on the second end of the cable. \return Port, the port on the second end of the cable.- Returns:
- Port Returns a Port
-
getOtherPort
Information provided by the PKI file:
\brief Returns the other port based on the specified port on one side of the cable. \param deviceName, name of the device (not the IOS name) \param portName, portName can be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0 \return Port, value is the other port based on the specified port on one side of the cable.- Parameters:
deviceName- Takes in a parameter of deviceNameportName- Takes in a parameter of portName- Returns:
- Port Returns a Port
-